import request from "@/request/request.ts";
import {loginInterface} from "@/components/Loign/interface/interface.ts";

/* 获取验证码的接口 */
export const sendCodeAPI = (phone: string) => {
    return request({
        url: `/sms/send/${phone}`,
        method: 'GET'
    })
}

/* 登录的接口 */
export const loginAPI = (data:loginInterface) => {
  return request({
      url:`user/login`,
      data,
      method:'POST'
  })
}

